let urlQuery = {}
if (/\#\/login\?/.test(window.location.hash)) {
	function parameters2json (url) {
		const obj = {}
		const reg = /([^?=&]+)=([^?=&]+)/g
		url.replace(reg, (...arg) => {
			obj[arg[1]] = arg[2]
		})
		return obj
	}
	urlQuery = parameters2json(window.location.hash)
}
if (urlQuery.cordova === 'true') {
	window.$fxUseCordova = true
	const scriptTag = document.createElement('script')
	scriptTag.src = './fxCordova.js'
	document.body.appendChild(scriptTag)
}
